import request from "@/utils/request";

// 查询
export function queryByPage(query) {
  return request({
    url: "/cashReceipts/queryByPage",
    method: "get",
    params: query,
  });
}

// 新增
export function cashReceiptsAdd(data) {
  return request({
    url: "/cashReceipts/add",
    method: "post",
    data: data,
  });
}

// 编辑
export function cashReceiptsEdit(data) {
  return request({
    url: "/cashReceipts/edit",
    method: "put",
    data: data,
  });
}

// 删除
export function cashReceiptsDeleteById(data) {
  return request({
    url: "/cashReceipts/deleteById/",
    method: "delete",
    data: data,
  });
}
